<template>
  <div>
    <h1>Header ****{{getcount}}</h1>
    <h2>~~~{{getPrice}}</h2>
  </div>
</template>

<script>
export default {
    name:'Header',
    mounted() {
        console.log(this)
    },
    computed:{
        getcount(){
            return this.$store.state.count
        },
        getPrice(){
            return this.$store.state.price
        }
    }
}
</script>

<style>

</style>